package com.jzh.consumer.controller;

import com.jzh.constant.MessageConstant;
import com.jzh.entity.Result;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;

/**
 * 首页
 * @author jzh971018
 */
@Controller
@RequestMapping("/main")
public class LoginController {

    @Resource(name = "userDetailsServiceBean")
    private UserDetailsService userDetailsService;

    @GetMapping("/index")
    public String toMain() {
        return "/pages/main.html";
    }

}
